package com.hyt.it.ogt.kq.service.gov.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hyt.core.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 任务区域表
 * </p>
 *
 * @author huangyh
 * @since 2021-04-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("kw_task_area")
@ApiModel(value="KwTaskArea对象", description="任务区域表")
public class TaskArea extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "考试任务id")
    private String taskId;

    @ApiModelProperty(value = "区域id")
    private String areaId;

    @ApiModelProperty(value = "父级id")
    private String parentId;

    @ApiModelProperty(value = "所有父级id")
    private String parentIds;

    @ApiModelProperty(value = "地区名")
    private String name;

    @ApiModelProperty(value = "级别")
    private String type;

    @ApiModelProperty(value = "区域职能，1：自定义区域")
    private Integer function;

    @ApiModelProperty(value = "级别")
    @TableField(exist = false)
    private Integer regionLevel;

    @TableField(exist = false)
    private String code;

    @TableField(exist = false)
    private String fullName;
}
